package com.t9;

/**
 * Created by xuyiwei on 2018/7/21.
 */
interface CanFinght{
    void fight();
}

interface CanSwim{
    void swim();
}

interface CanFly{
    void fly();
}

interface CanClimb{
    void climb();
}
class ActionCharcter{
    public void fight(){

    }
}

class Hero extends ActionCharcter implements CanFinght,CanSwim,CanFly,CanClimb{

    @Override
    public void swim() {

    }

    @Override
    public void fly() {

    }

    @Override
    public void fight() {

    }

    @Override
    public void climb() {

    }
}

public class Adventure  {
    public static void t(CanFinght f){f.fight();}
    public static void s(CanSwim s){s.swim();}
    public static void v(CanFly v){v.fly();}
    public static void w(ActionCharcter x){x.fight();}
    public static void b(CanClimb c){c.climb();}
    public static void main(String[] args) {
        Hero h = new Hero();
        Adventure.t(h);
        Adventure.v(h);
        Adventure.s(h);
        Adventure.w(h);
        Adventure.b(h);
    }
}
